package com.sikaryofficial.workbench.domain.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * 会员激励关系对象 membership_relation_t
 *
 * @author wuweihong
 * @date 2024-10-23
 */

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("membership_relation_t")
public class MembershipRelation implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 会员激励政策id
	 */
	@TableId(type = IdType.ASSIGN_ID, value = "membership_relation_id")
	private Long membershipRelationId;

	/**
	 * 会员激励政策id
	 */

	private Long membershipPolicyId;

	/**
	 * 用户ID
	 */

	private Long userId;

	/**
	 * 用户名
	 */
	private String userName;

	/**
	 * 租户号
	 */

	private Integer tenantId;

	/**
	 * 乐观锁
	 */

	private Integer revision;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	private Long createdBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createdTime;

	/**
	 * 更新人
	 */
	@TableField(fill = FieldFill.UPDATE)
	private Long updatedBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.UPDATE)
	private Date updatedTime;

	/**
	 * 删除版本：默认为0；删除则赋值当前记录主键ID
	 */

	private Long deletedVersion;

}
